import {init} from '../../utils/app';
import RouterConfig from './router';
import createEffectLock from '../../plugins/effectLock';
import login from './model/login';
import home from './model/home';
import group from './model/group';
import groupCreate from './model/groupCreate';
import groupJoin from './model/groupJoin';

const Edu = init({
	initialState: {
		login: {
	        loginRedirect: 'home'
	    }
	},
	models: [
		login,
		home,
    	group,
    	groupCreate,
    	groupJoin,
	],
	start: RouterConfig,
	plugins: [
        createEffectLock()
	],
});

export default Edu;
